package com.cqq.normal.service;

import java.util.List;

import com.cqq.normal.service.bean.ConstantBean;
import com.cqq.normal.service.exception.ConstantServiceException;

/**
 * <h3>常量服务接口</h3>
 * @author liuyu
 *
 */
public interface ConstantService {

	/**
	 * 新增常量
	 * @param constantBean
	 * @return
	 */
	Integer addConstant(ConstantBean constantBean) throws ConstantServiceException ;
	
	/**
	 * 删除常量
	 * @param id
	 * @return
	 */
	boolean deleteConstant(Integer id) throws ConstantServiceException ;
	
	/**
	 * 修改常量
	 * @param constantBean
	 * @return
	 */
	boolean updateConstant(ConstantBean constantBean) throws ConstantServiceException ;
	
	/**
	 * 根据常量类型查询常量列表
	 * @param type
	 * @return
	 */
	List<ConstantBean> listConstantByType(String type) throws ConstantServiceException ;
	
	/**
	 * 查询全部常量列表
	 * @return
	 */
	List<ConstantBean> listAllConstant();
}
